package com.saohuobang.test.model;

/**
 * 作者 yaohua.liu
 * 日期 2015-12-15 11:54
 * 说明 配置信息
 */
public class UnitProperty {

    public UnitProperty() {
    }

    public UnitProperty(String httpMethod, String uri, String FileName, String fileType) {
        this.httpMethod = httpMethod;
        this.uri = uri;
        this.fileName = FileName;
        this.fileType = fileType;
    }

    /**
     * file data,http response charset,default is UTF-8
     */
    private String charset = "UTF-8";

    /**
     * http method ,include GET & POST
     */
    private String httpMethod = "POST";
    /**
     * uri
     */
    private String uri = "";

    /**
     * return type,include txt,json and xml,default is txt
     */
    private String fileType = "txt";
    /**
     * file name. eg ${port}_${yyyyMMddHHmmssSSS}_${random}
     */
    private String fileName = "";

    public String getCharset() {
        return charset;
    }

    public UnitProperty setCharset(String charset) {
        this.charset = charset;
        return this;
    }

    public String getHttpMethod() {
        return httpMethod;
    }

    public void setHttpMethod(String httpMethod) {
        this.httpMethod = httpMethod;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

}
